package com.linden.std.constant;

/**
 * 通用常量类
 */
public class CommonConstant {
    
    /** Redis用户登录信息缓存键前缀 */
    public static final String REDIS_LOGIN_USER_KEY_PREFIX = "login:user:";
    
    /** Redis用户权限信息缓存键前缀 */
    public static final String REDIS_USER_PERMISSION_KEY_PREFIX = "user:permission:";
    
    /** Token请求头名称 */
    public static final String TOKEN_HEADER = "Authorization";
    
    /** Token前缀 */
    public static final String TOKEN_PREFIX = "Bearer ";
    
    /** 用户状态：启用 */
    public static final Integer USER_STATUS_ENABLED = 1;
    
    /** 用户状态：禁用 */
    public static final Integer USER_STATUS_DISABLED = 0;
    
    /** 删除标记：正常 */
    public static final Integer DEL_FLAG_NORMAL = 0;
    
    /** 删除标记：已删除 */
    public static final Integer DEL_FLAG_DELETED = 1;
    
    /** 登录尝试次数缓存键前缀 */
    public static final String LOGIN_ATTEMPT_PREFIX = "login:attempt:";
    
    /** 登录锁定缓存键前缀 */
    public static final String LOGIN_LOCK_PREFIX = "login:lock:";
    
    /** Session中用户信息键 */
    public static final String SESSION_USER_KEY = "session_user";
    
    /** Session中权限信息键 */
    public static final String SESSION_PERMISSION_KEY = "session_permission";
}